package com.operation.service;

import com.operation.beans.Performance;
import com.operation.beans.Result;
import com.operation.beans.WorkOrderAllInfo;
import com.operation.beans.YearDetailDep;
import com.operation.entity.WorkOrder;

import java.util.List;
import java.util.Map;


public interface WorkOrderService{
    /**
     * 提交工单
     * @param workOrder
     * @return
     */
    public Result addWorkOrder(WorkOrder workOrder);

    /**
     * 提交工单图片
     * @param workOrder
     * @return
     */
    public int addWorkOrderPhoto(WorkOrder workOrder);

    /**
     * 查看工单信息
     * @param workOrder
     * @return
     */
    public Result queryWorkOrderInformation(WorkOrder workOrder);

    /**
     * 删除工单
     * @param workOrder
     * @return
     */
    public Result deleteWorkOrder(WorkOrder workOrder);

    /**
     * 查看部门工单数
     * @return
     */
    public Result queryDepWorkOrder(YearDetailDep yearDetailDep);

    /**
     * 查看运维每月工单数
     * @return
     */
    public Result queryItMonthWorkOrder(YearDetailDep yearDetailDep);

    /**
     * 查看运维人员的评论和星星
     * @return
     */
    public List<WorkOrderAllInfo> findComplaintAndStar();

    /**
     * 删除评论工单
     * @param jobNumber
     * @return
     */
    public int deleteComplaint(String jobNumber);

    /**
     * 已处理投诉工单
     * @return
     */
    public List<WorkOrderAllInfo> findComplaintAndIspigeonhole();

    /**
     * 查看用户是否存在未完成工单
     * @param userAccount
     * @return
     */
    public String isUnderway(Integer userAccount);

    /**
     * 查看今天有几单
     * @return
     */
    public WorkOrder aFewSingle();

    /**
     * 查看是否评论
     * @param jobNumber
     * @return
     */
    public WorkOrder isComment(String jobNumber);

    /**
     * 查看是否投诉
     * @param jobNumber
     * @return
     */
    public WorkOrder isComplaint(String jobNumber);

    /**
     * 通过故障
     * @return
     */
    public Result byDetails(YearDetailDep yearDetailDep);

}
